package cn.lr.org.service.impl;

import cn.lr.basic.service.impl.BaseServiceImpl;
import cn.lr.org.domain.Type;
import cn.lr.org.domain.Type;
import cn.lr.org.mapper.TypeMapper;
import cn.lr.org.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TypeServiceImpl extends BaseServiceImpl<Type> implements ITypeService {
    @Autowired
    private TypeMapper typeMapper;

    @Override
    public void save(Type type) {
        typeMapper.save(type);
    }

    @Override
    @Transactional
    public void update(Type type) {
        typeMapper.update(type);
    }



}
